home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Libraries / Sherlock 2.0 / DevLibSrc / Main_DevLib / LIBlib.h < prev    next >
Text File  |  1996-02-09  |  2KB  |  95 lines

  1. /*
  2.     devlib:  master header file.
  3.     
  4.     source:  LIBlib.h
  5.     started: January 7, 1994.
  6.     version:
  7.         February 9, 1996.
  8.             Added support for C++.
  9.         September 26, 1995.
  10.             Added lib_log_file_name to fix a bug in the Sherlock dialog.
  11.         July 11, 1994.
  12.             Added lib_stderr_flag.
  13.         June 19, 1994.
  14. */
  15.  
  16. #ifndef LIBlib_h_
  17. #define LIBlib_h_
  18.  
  19. #pragma once
  20.  
  21. #ifdef __cplusplus    // 2/9/96
  22. extern "C" {
  23. #endif
  24.  
  25. #ifdef PRODUCTION
  26.     #undef SHERLOCK
  27. #else
  28.     #define SHERLOCK
  29. #endif
  30.  
  31. #include <LIBtypes.h>    /* Must come first. */
  32. #include <sl.h>            /* Must come second. */
  33. #include <LIBcvt.h>
  34. #include <LIBdebug.h>
  35. #include <LIBes.h>
  36.  
  37. /*
  38.     Define standard abbreviations.
  39. */
  40. #define str_eq(a,b) (strcmp(a,b)==0)
  41.  
  42. #ifndef max
  43.     #define max(a,b) (((a) > (b)) ? (a) : (b))
  44. #endif
  45.  
  46. #ifndef min
  47.     #define min(a,b) (((a) < (b)) ? (a) : (b))
  48. #endif
  49.  
  50. #ifndef TRUE
  51.     #define TRUE 1
  52. #endif
  53.  
  54. #ifndef FALSE
  55.     #define FALSE 0
  56. #endif
  57.  
  58. /* 
  59.     Define function prototypes for routines called by the library that
  60.     must be defined outside the library.
  61. */
  62.  
  63. void end_close_all    (void);
  64.  
  65. bool err_begin        (void);
  66. void err_context    (void);
  67.  
  68. void es_assert_failed    (char * condition, int line, char * file);
  69. void es_internal_err    (char * condition, int line, char * file);
  70.  
  71. void fatal_begin    (void);
  72. void fatal_end        (void);
  73.  
  74. void main_quit        (void);
  75.  
  76. /*
  77.     Define variables used by the library that must be defined outside the library.
  78. */
  79. extern pstring    lib_about_title;        /* Must be a pascal string. */
  80. extern char *    lib_arg_file_name;        /* The name of the argument file. */
  81. extern char *    lib_log_file_name;        /* The name of the argument file. */
  82. extern char *    lib_log_file_prompt;    /* Prompt for file name. */
  83. extern char *    lib_log_window_name;    /* The name of log window. */
  84. extern bool        lib_modem_flag;            /* 0/1 send output to modem/printer port. */
  85. extern char *    lib_program_name;        /* The name of the program. */
  86. extern bool        lib_serial_flag;         /* TRUE: S-record output goes to serial port. */
  87. extern bool        lib_stderr_flag;        /* TRUE: send log output to stderr on the Mac. */
  88. extern char *    lib_version;            /* Version for signon message. */
  89.  
  90. #ifdef __cplusplus    // 2/9/96
  91. }
  92. #endif
  93.  
  94. #endif /* LIBlib_h_ */
  95.